<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <button v-on:click="btnAction">点击看学习资料</button>
        <button @click="btnAction">这里不懂点这里</button>
    </div>
    <script>
        const app = Vue.createApp
        ({
            data()
            {
                return 
                {
                    
                }
            },
            methods: 
            {
                btnAction()
                {
                    console.log(4399);
                }
            }
        })
        app.mount("#app")
    </script>
    
</body>
</html>